package com.hdoit.apollo.logical.inventory.dao.impl;


import org.springframework.stereotype.Component;

import com.hdoit.apollo.logical.inventory.dao.IInventoryCollocationDao;
import com.hdoit.apollo.logical.inventory.model.InventoryCollocation;
import com.tennetcn.data.dao.base.ISqlExpression;
import com.tennetcn.data.dao.base.impl.SuperDao;
import com.tennetcn.data.utils.SqlExpressionFactory;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 14:56:49
 * @comment
 */
@Component
public class InventoryCollocationDaoImpl extends SuperDao<InventoryCollocation> implements IInventoryCollocationDao{

	@Override
	public boolean deleteInventoryCollocation(String showId) {
		ISqlExpression sqlExpression = SqlExpressionFactory.createExpression();
		sqlExpression.addBody("delete from",InventoryCollocation.class)
					.andWhere("showId=#{showId}")
					.setParam("showId", showId);
		return delete(sqlExpression)>=0;
	}

}
